function student(name,age){
    this.name=name;
    this.age=age;
    this.introduce=function(){
        console.log("大家好,我叫"+this.name+'今年'+this.age+'岁');
    }
}
var stu1=new student('小W',18);
stu1.introduce();
var stu2=new student('小G',18);
stu2.introduce();
var stu3=new student('小K',18);
stu3.introduce();